.class public final Les/wp;
.super Ljava/lang/Object;
.source "SceneManager.java"


# static fields
.field private static final g:Les/wp;


# instance fields
.field private final a:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Les/st;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/up;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Les/yp;

.field private final d:Les/gq;

.field private final e:Les/vp;

.field private f:Ljava/util/concurrent/atomic/AtomicBoolean;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Les/wp;

    invoke-direct {v0}, Les/wp;-><init>()V

    sput-object v0, Les/wp;->g:Les/wp;

    return-void
.end method

.method private constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    iput-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    .line 3
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Les/wp;->b:Ljava/util/List;

    .line 4
    new-instance v0, Les/yp;

    invoke-direct {v0}, Les/yp;-><init>()V

    iput-object v0, p0, Les/wp;->c:Les/yp;

    .line 5
    new-instance v0, Les/gq;

    invoke-direct {v0}, Les/gq;-><init>()V

    iput-object v0, p0, Les/wp;->d:Les/gq;

    .line 6
    new-instance v0, Les/vp;

    invoke-direct {v0}, Les/vp;-><init>()V

    iput-object v0, p0, Les/wp;->e:Les/vp;

    .line 7
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    iput-object v0, p0, Les/wp;->f:Ljava/util/concurrent/atomic/AtomicBoolean;

    return-void
.end method

.method static synthetic a(Les/wp;)Ljava/util/concurrent/atomic/AtomicBoolean;
    .locals 0

    .line 1
    iget-object p0, p0, Les/wp;->f:Ljava/util/concurrent/atomic/AtomicBoolean;

    return-object p0
.end method

.method private a(Les/st;)V
    .locals 2
    .param p1    # Les/st;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 2
    invoke-virtual {p1}, Les/st;->d()V

    .line 3
    iget-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {p1}, Les/st;->c()I

    move-result v1

    invoke-virtual {v0, v1, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    return-void
.end method

.method public static g()Les/wp;
    .locals 1

    .line 1
    sget-object v0, Les/wp;->g:Les/wp;

    return-object v0
.end method


# virtual methods
.method public a(I)Les/st;
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/IntRange;
            from = 0x0L
        .end annotation
    .end param

    if-gtz p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 10
    :cond_0
    iget-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/st;

    return-object p1
.end method

.method public a()V
    .locals 1

    .line 23
    iget-object v0, p0, Les/wp;->e:Les/vp;

    invoke-virtual {v0}, Les/vp;->a()V

    return-void
.end method

.method public a(II)V
    .locals 1

    .line 22
    iget-object v0, p0, Les/wp;->e:Les/vp;

    invoke-virtual {v0, p1, p2}, Les/vp;->a(II)V

    return-void
.end method

.method public a(IILes/rt;)V
    .locals 2

    const/4 v0, 0x0

    if-lez p1, :cond_3

    if-gtz p2, :cond_0

    goto :goto_0

    .line 11
    :cond_0
    iget-object v1, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/st;

    if-nez p1, :cond_2

    const-string p1, "scene"

    const-string p2, "this scene type is not exist"

    .line 12
    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p3, :cond_1

    .line 13
    invoke-interface {p3, v0}, Les/rt;->a(Z)V

    :cond_1
    return-void

    .line 14
    :cond_2
    invoke-virtual {p1, p3}, Les/st;->a(Les/rt;)V

    .line 15
    invoke-virtual {p1, p2}, Les/st;->c(I)V

    return-void

    :cond_3
    :goto_0
    const-string p1, "scene type or action type is empty"

    .line 16
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    if-eqz p3, :cond_4

    .line 17
    invoke-interface {p3, v0}, Les/rt;->a(Z)V

    :cond_4
    return-void
.end method

.method public a(IIZ)V
    .locals 2

    if-lez p1, :cond_2

    if-gtz p2, :cond_0

    goto :goto_1

    .line 18
    :cond_0
    iget-object v0, p0, Les/wp;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/up;

    if-eqz p3, :cond_1

    .line 19
    invoke-interface {v1, p1, p2}, Les/up;->a(II)V

    goto :goto_0

    .line 20
    :cond_1
    invoke-interface {v1, p1, p2}, Les/up;->b(II)V

    goto :goto_0

    :cond_2
    :goto_1
    return-void
.end method

.method public a(ILes/bq;)V
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/IntRange;
            from = 0x0L
        .end annotation
    .end param
    .param p2    # Les/bq;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    if-gtz p1, :cond_0

    const-string p1, "scene type is empty"

    .line 4
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    return-void

    .line 5
    :cond_0
    invoke-virtual {p2}, Les/bq;->j()I

    move-result v0

    if-gtz v0, :cond_1

    const-string p1, "scene action is null or scene action type is empty"

    .line 6
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    return-void

    .line 7
    :cond_1
    iget-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/st;

    if-nez p1, :cond_2

    const-string p1, "please add scene first"

    .line 8
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    return-void

    .line 9
    :cond_2
    invoke-virtual {p1, p2}, Les/st;->a(Les/bq;)V

    return-void
.end method

.method public a(Les/up;)V
    .locals 1

    .line 21
    iget-object v0, p0, Les/wp;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public b()V
    .locals 3

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->y()Ljava/util/List;

    move-result-object v0

    .line 9
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/app/Activity;

    .line 10
    instance-of v2, v1, Lcom/estrongs/android/pop/app/scene/show/dialog/SceneDialogActivity;

    if-eqz v2, :cond_0

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/app/unlock/a;->c()Lcom/estrongs/android/pop/app/unlock/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/unlock/a;->a()V

    .line 12
    invoke-virtual {v1}, Landroid/app/Activity;->finish()V

    :cond_1
    return-void
.end method

.method public b(I)V
    .locals 1

    if-gtz p1, :cond_0

    const-string p1, "scene type is empty"

    .line 4
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    return-void

    .line 5
    :cond_0
    iget-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/st;

    if-eqz p1, :cond_1

    .line 6
    invoke-virtual {p1}, Les/st;->f()V

    :cond_1
    return-void
.end method

.method public b(II)V
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/IntRange;
            from = 0x0L
        .end annotation
    .end param
    .param p2    # I
        .annotation build Landroidx/annotation/IntRange;
            from = 0x0L
        .end annotation
    .end param

    if-lez p1, :cond_2

    if-gtz p2, :cond_0

    goto :goto_0

    .line 1
    :cond_0
    iget-object v0, p0, Les/wp;->a:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/st;

    if-eqz p1, :cond_1

    .line 2
    invoke-virtual {p1, p2}, Les/st;->b(I)V

    :cond_1
    return-void

    :cond_2
    :goto_0
    const-string p1, "scene type or action type is empty"

    .line 3
    invoke-static {p1}, Les/zp;->a(Ljava/lang/String;)V

    return-void
.end method

.method public b(Les/up;)V
    .locals 1

    .line 7
    iget-object v0, p0, Les/wp;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public c()Les/yp;
    .locals 1

    .line 1
    iget-object v0, p0, Les/wp;->c:Les/yp;

    return-object v0
.end method

.method public d()V
    .locals 3

    .line 1
    new-instance v0, Les/xt;

    const/4 v1, 0x2

    invoke-direct {v0, v1}, Les/xt;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 2
    new-instance v0, Les/st;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Les/st;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 3
    new-instance v0, Les/st;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Les/st;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 4
    new-instance v0, Les/tt;

    const/4 v2, 0x4

    invoke-direct {v0, v2}, Les/tt;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 5
    new-instance v0, Les/ut;

    const/4 v2, 0x5

    invoke-direct {v0, v2}, Les/ut;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 6
    new-instance v0, Les/vt;

    const/4 v2, 0x6

    invoke-direct {v0, v2}, Les/vt;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 7
    new-instance v0, Les/wt;

    const/4 v2, 0x7

    invoke-direct {v0, v2}, Les/wt;-><init>(I)V

    invoke-direct {p0, v0}, Les/wp;->a(Les/st;)V

    .line 8
    new-instance v0, Les/dq;

    invoke-direct {v0}, Les/dq;-><init>()V

    invoke-virtual {p0, v1, v0}, Les/wp;->a(ILes/bq;)V

    return-void
.end method

.method public e()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/wp;->d:Les/gq;

    invoke-virtual {v0}, Les/gq;->a()Z

    move-result v0

    return v0
.end method

.method public f()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/wp;->f:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-static {}, Lcom/estrongs/android/util/o0;->a()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Les/wp$a;

    invoke-direct {v1, p0}, Les/wp$a;-><init>(Les/wp;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method
